package com.lucy.property.entity;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.checkerframework.checker.units.qual.C;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 * 停车场相关实体类
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "parking_lot")
@ApiModel(value = "停车场")
public class ParkingLot extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "区单元ID")
    @Column(name = "unit_id")
    String unitId;

    @ApiModelProperty("区单元编码")
    @Column(name = "unit_code")
    String unitCode;

    @ApiModelProperty("区单元名称")
    @Column(name = "unit_name")
    String unitName;

    @ApiModelProperty("停车场编码")
    @Column(name = "parking_lot_code")
    String parkingLotCode;

    @ApiModelProperty("停车场名称")
    @Column(name = "parking_lot_name")
    String parkingLotName;

    @ApiModelProperty("停车场地址")
    @Column(name = "location")
    String location;

    @ApiModelProperty("停车场状态")
    @Column(name = "parking_lot_status")
    String parkingLotStatus;

    @ApiModelProperty("停车位个数")
    @Column(name = "parking_space_num")
    Integer parkingSpaceNum;

    @ApiModelProperty("使用中个数")
    @Column(name = "in_used_num")
    Integer inUsedNum;

}
